package com.test.test01.common.base.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Description: 响应基类
 * Create DateTime: 2020-03-15 00:24
 *
 * @author houyi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResponse implements Serializable {

    private static final long serialVersionUID = -8286988595759753398L;

    /**
     * 响应码
     */
    private Integer code;

    /**
     * 详细信息
     */
    private String message;

    /**
     * 状态
     */
    private String status;

    /**
     * 响应数据
     */
    private Object data;

    public BaseResponse(Object data) {
        this.data = data;
    }
}
